#define fexit(s) { fprintf( stderr, "%s\n", s ); exit(1); }
#include <stdio.h>
#include <stdlib.h>
#include "../../jerasure-2.h"

int main( int argc, char** argv )
{
	JER_Matrix *matrix;
	int r = atoi( argv[1] );
	int c = atoi( argv[2] );
	int w = atoi( argv[3] );

	matrix = new JER_Matrix( r, c, w );
	if( matrix == NULL )
		fexit( "Matrix could not be allocated." );
	matrix->CreateIdentity();
	matrix->Print();

	return 0;
}
